package net.sevear.chaos.view
{
	import mx.core.UIComponent;
	
	public class ContactFanView extends UIComponent
	{
		public function ContactFanView(w:Number,h:Number)
		{
			super();
			this.width = w;
			this.height = h;
		}
		
		private var _intervalAngle:Number;
		private var _intervalArr:Array;
		public function setIntervals(contacts:Array):void{
			if(contacts.length>0){
				_intervalAngle = 360/contacts.length;
				_intervalArr =[];
				for (var i:int=0;i<contacts.length;i++){
					_intervalArr.push((i+0.5)*_intervalAngle);
				}
				
				this.graphics.clear();
				this.graphics.drawCircle(width/2,height/2,10,10);
				var centerPosx:Number = width/2;
				var centerPosy:Number = height/2;
				for(var i:int=0;i<contacts.length;i++){
					
				}
			}
			else{
//				trace("分割数不能<=0")
				this.enabled = false;
			}
		}
	}
}